package com.jadows.tdog.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author taojiacheng
 */
@ConfigurationProperties(prefix = "chat.server")
@Data
public class ChatServerProperties {

    private String host;
    private String name;
    private int port;

    private int parentGroupThread = Runtime.getRuntime().availableProcessors() * 2;
    private int workerGroupThread = Runtime.getRuntime().availableProcessors() * 2;
    private int publicExecutorThread = Runtime.getRuntime().availableProcessors() * 2;
}
